package com.xiwenlu.config;

import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.module.SimpleModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JacksonConfig {

    @Bean
    public Module dicTypeModule(DictProvider dictProvider) {
        SimpleModule module = new SimpleModule();
        module.setSerializerModifier(new DicTypeBeanSerializerModifier(dictProvider));
        return module;
    }
}

